package com.security.controller;

import com.security.vo.OauthBaseVo;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.web.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.util.AntPathMatcher;
import org.springframework.util.PathMatcher;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.*;

/**
 * Created by 陈圣融 on 2017-07-28.
 */
@Controller
public class OauthController{

    @RequestMapping("/unoauthenticated")
    @ResponseBody
    public OauthBaseVo unauthenticated(HttpServletRequest request) {
        OauthBaseVo oauthBaseVo = (OauthBaseVo) request.getAttribute("oauthBaseErrorVo");
        return oauthBaseVo;
    }



}
